package be.novelfaces.showcase.webdriver.util;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public abstract class WaitForElementPresent extends Waiter {

	@Override
	public Boolean waitForCondition(WebDriver driver) {
		try {
			driver.findElement(getBy());
		} catch (Exception e) {
			return false;
		}
		return true;
	}

	public abstract By getBy();

}
